package edu.bulsu.coe.nfc;

import java.util.HashMap;

public class CardDB extends HashMap<Integer, Card>{
	private static final long serialVersionUID = 1000L;
	
	public void activateCard(int cardNumber, Card card){
		put(cardNumber, card);
	}
	public void deactivateCard(int cardNumber){
		remove(cardNumber);
	}
	public Card getCard(int cardNumber){
		return get(cardNumber);
	}
	public boolean getCardPresence(int cardNumber){
		return containsKey(cardNumber);
	}
}
